SftTree/OCX 7.0

SftTree.LastSibling Property

Softel vdm, Inc.

Returns the index of an item's last sibling item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.LastSibling instead

Syntax       

Get

VB.NET

SiblingIndex = object.get_LastSibling(ByVal ItemIndex As Integer)  As Integer

VB

SiblingIndex = object.LastSibling(ByVal ItemIndex As Long)  As Long

C#.NET

int SiblingIndex = object.get_LastSibling(int ItemIndex);

VC++

long SiblingIndex = object->LastSibling[long ItemIndex];
long SiblingIndex = object->GetLastSibling(long ItemIndex);

C

HRESULT object->get_LastSibling(long ItemIndex, long* SiblingIndex);

Delphi

SiblingIndex := object.LastSibling[ItemIndex : Integer]   : Integer;

object

A SftTree object.

ItemIndex

The zero-based index of the item whose last sibling item is to be returned.

SiblingIndex

Returns the index of an item's last sibling item.  If the item doesn't have a sibling item, -1 is returned.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.LastSibling instead

The LastSibling property returns the index of an item's last sibling item.

The last sibling of item ItemIndex is found by scanning towards the end of the tree control and locating an item on the same level (Item.Level property) as item ItemIndex without encountering a new parent item.

The Item.FirstSibling property can be used to retrieve an item's first sibling.  The Item.NextSibling and Item.PrevSibling properties can be used to retrieve an item's next or previous sibling.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com